package com.vlaearn.spring.aop.after.before;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class OurLogic {
	public static void main(String args[]) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"spring-aop-before-after-advice.xml");
		MyInterFace inter = (MyInterFace) context.getBean("id4");
		inter.m1();
		inter.m2();

		// refer
		// http://www.java4s.com/spring/spring-aspect-oriented-programming-aspect-introduction-example/
		//http://www.java4s.com/spring/example-on-spring-aop-before-advice-after-advice/
	}
}
